from flask_sqlalchemy import SQLAlchemy

# 初始化SQLAlchemy对象
db = SQLAlchemy()


def init_db(app):
    """初始化数据库"""
    db.init_app(app)